package com.qtu.product_service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qtu.entity.BmSpecification;
import com.qtu.product_service.entity.ProductMapper;

import java.text.ParseException;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

public interface HomeService extends IService<BmSpecification> {

    /**
     * 首页：查询秒杀商品
     * @param mid 店铺ID
     * @param count 商品数量/条
     * @return
     */
    ConcurrentHashMap<Object, Object> getHotGoods(int mid, int count, String killIds) throws ParseException;
    /**
     * 首页：查询推荐商品
     * @param mid 店铺ID
     * @param time 新品推荐：最近/天
     * @param count 商品数量/条
     * @return
     */
    List<ProductMapper> getNewGoods(int mid, int time,int count,String newIds);
    /**
     * 商品详情查询
     * @param goodsId 商品id
     * @return
     */
    List<ProductMapper> getGoodsOne(int goodsId);
}
